import os, shutil
Repository='/var/www/downloadrepository'
SubDirectories=os.listdir(Repository)
for i in SubDirectories:
    SubPath=os.path.join(Repository, i)
    shutil.rmtree(SubPath)
    print SubPath
